package com.timothy.shiro;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "timothy.shiro")
public class ServerShiroProperties {

	/** redis中的session过期时间，默认为30分钟 */
	private int redisSessionExpire = 1800;
	/** redis中session key前缀 */
	private String redisSessionPrefix = "shiro:session:";
	/** redis中的cache过期时间，默认为30分钟 */
	private int redisCacheExpire = 1800;
	/** redis中的cache key前缀 */
	private String redisCachePrefix = "shiro:cache:";
	/** redis中授权cache key名字 */
	private String redisAuthCacheName = "authorizationCache";

	public int getRedisSessionExpire() {
		return redisSessionExpire;
	}

	public void setRedisSessionExpire(int redisSessionExpire) {
		this.redisSessionExpire = redisSessionExpire;
	}

	public String getRedisSessionPrefix() {
		return redisSessionPrefix;
	}

	public void setRedisSessionPrefix(String redisSessionPrefix) {
		this.redisSessionPrefix = redisSessionPrefix;
	}

	public int getRedisCacheExpire() {
		return redisCacheExpire;
	}

	public void setRedisCacheExpire(int redisCacheExpire) {
		this.redisCacheExpire = redisCacheExpire;
	}

	public String getRedisCachePrefix() {
		return redisCachePrefix;
	}

	public void setRedisCachePrefix(String redisCachePrefix) {
		this.redisCachePrefix = redisCachePrefix;
	}

	public String getRedisAuthCacheName() {
		return redisAuthCacheName;
	}

	public void setRedisAuthCacheName(String redisAuthCacheName) {
		this.redisAuthCacheName = redisAuthCacheName;
	}
}
